package com.freeLearning.boot.common.enums;

import lombok.Getter;

@Getter
public enum AuditStatusEnum {
    WAIT_AUDIT(0, "待审核"),
    AUDIT_PASS(1, "审核通过"),
    AUDIT_NOT_PASS(2, "审核未通过");

    private final Integer value;

    private final String label;

    AuditStatusEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

    public static String getLabel(Integer value) {
        if (value.equals(WAIT_AUDIT.getValue())){
            return WAIT_AUDIT.getLabel();
        }else if (value.equals(AUDIT_PASS.getValue())){
            return AUDIT_PASS.getLabel();
        }else if (value.equals(AUDIT_NOT_PASS.getValue())){
            return AUDIT_NOT_PASS.getLabel();
        }else {
            return null;
        }
    }
}
